<template>
	<view>
		<u-navbar back-icon-color="#f1f1f1" title-color="#f1f1f1" title="用户协议" :background="navbarBackground"></u-navbar>
		<view class="main"><u-parse :html="content"></u-parse></view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			navbarBackground: {
				backgroundImage: 'linear-gradient(90deg, rgb(27,52,92), rgb(49,84,142))'
			},
			content: ''
		};
	},
	onLoad() {
		// #ifdef MP-WEIXIN
		uni.showShareMenu({
			withShareTicket: true,
			menus: ['shareAppMessage', 'shareTimeline']
		});
		// #endif
		this.$baseRequest('/api/Common/agreement').then(res => {
			this.content = res.data.content;
		});
	}
};
</script>

<style lang="scss" scoped>
.main {
	padding: $uni-spacing-row-lg $uni-spacing-row-lg;
	font-size: 11pt;
	line-height: 1.5;
}
</style>
